
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>用户权限维护页</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="../css/AdminLTE/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="../css/AdminLTE/dist/css/AdminLTE.min.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="../css/AdminLTE/plugins/iCheck/square/blue.css">
  <style>
  	html{
  		overflow: hidden;
  	}
  	.form-control{
  		height: 44px;
   		margin-bottom: 28px;
  	}
  	.alert{
  		position: absolute;
	    top: 0px;
	    right: 0px;
	    width: 336px;
	    display: none;
  	}
  	.redalert{
  		border-color: #dd4b39;
  	}
  	#successSave{
	position: fixed;
    right: 0px;
    z-index: 10000;
    opacity: 0.8;
    alpha(opacity=70);
    display: none;
    width: 250px;
    top: 47px;
}
	#errorSave{
	position: fixed;
    right: 0px;
    z-index: 10000;
    opacity: 0.8;
    alpha(opacity=70);
    display: none;
    width: 250px;
    top: 47px;
}
	.repeatDiv{margin-left: 40px;}
	.edit {color: green;}
	.del { color: red;}
	.leveldiv{display: inline-block;width: 100px;margin-right: 10px;float: right;}
  </style>

</head>
<body class="hold-transition login-page" ng-app="rootTenantAuthority" ng-controller="rootTenantAuthorityCtrl">
					<div class="alert alert-success alert-dismissible" id="successSave" >
	                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	               <h4 style="text-align: center;" > <i class="icon fa fa-check pull-left"></i><span id="alertStr">操作成功！</span></h4>
	        </div>
	        <div class="alert alert-warning alert-dismissible" id="errorSave" >
	                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	               <h4 style="text-align: center;" > <i class="icon fa fa-close pull-left"></i><span id="errorStr">操作失败！</span></h4>
	        </div>
	<div style='width: 100%;height:100%;position: relative;'>
			 <section class="content-header" style='position: relative;' > 
	      <h1 style="text-align:center;margin: 10px 0px 5px 0px;">
	        	用户权限维护页
	      </h1>
	    </section>
			
			<div style='background: transparent;width: 86%;margin: 2% 7%;border-radius: 5px;height: 70%;display:flex;background-color: #ffffff;'>
		    	<div style='width: 30%;border: 1px solid #ccc;border-radius: 5px 0px 0px 5px;'>
		    			<div style='width: 100%;height: 90%;'><!--background-color: #e4eaec;-->
		    					<div ng-click='getAuthority($event,tenant.id,tenant.fullName)' ng-repeat='tenant in tenants' style='cursor: pointer; width: 100%;height: 50px;line-height: 50px;text-indent: 10%;border-bottom: 1px solid #ddd;'>{{tenant.fullName}}</div>
		    			</div>
		    			<div style='width: 100%;height: 10%;border-top: 1px solid #CCCCCC;padding: 10px;'>
		    				<button ng-click='openTenantModal()' class="btn btn-primary pull-left" ><i class="fa fa-plus"></i>&nbsp;&nbsp;新增用户</button>
		    				<button style='margin-left: 2%;' class="btn btn-info" ng-click="openUpdateTenant()">修改</button>
		          	<button style='margin-left: 2%;' class="btn btn-danger" ng-click="delTenant()">删除</button>
		    			</div>
		    	</div>
		    	<div style='width: 70%;border: 1px solid #ccc;border-left: none;border-radius: 0px 5px 5px 0px;'>
		    			<div style='width: 100%;height: 90%;overflow: auto;'>
		    					<div  class='repeatDiv'  ng-repeat="data in datas.children " >
		    							<input  class='checkbox_{{data.parentId}}' id='checkbox_{{data.id}}' ng-click='judgeState($event,data.id,data.parentId,data.level)' type="checkbox" ng-model='data.checked' />
		    							<label  style='padding-left:10px;background-color: #3c8dbc;width: 270px;margin-bottom: 0px;height: 40px;line-height:40px;border-radius: 3px;border: 1px solid #CCCCCC;'>{{data.name}}</label>
		    							<button ng-show=' data.children.length != 0 ' ng-click='modalDiv(data.id)' style='margin-bottom: 4px;' class="btn btn-primary " ><i class="fa fa-plus"></i></button>
		    							
		    							<div style='margin-left: 40px;display: block;' class='repeatDiv_{{data.parentId}}'  ng-repeat="data in data.children" >
		    									<div style='position: relative;display: inline-block;width: 13px;height: 35px;margin-top: -5px;'>
		    										<input style='position: absolute;top: 10px;right: 0px;' class='checkbox_{{data.parentId}}' id='checkbox_{{data.id}}' ng-click='judgeState($event,data.id,data.parentId,data.level)' type="checkbox" ng-model='data.checked' />
		    									</div>
		    									<label style='position:relative;padding-left:10px;background-color: #00c0ef;width: 270px;margin-bottom: -4px;height: 35px;line-height:35px;border-radius: 3px;border: 1px solid #CCCCCC;'>
		    										<span style='height: 30px;display: inline-block;float: left;margin-right: 10px;width: 100px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;'>{{data.name}}</span>
		    										<span style='height: 30px;display:inline-block;width: 120px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;' ng-show=" data.description != null && data.description != ''">备注:&nbsp;&nbsp;{{data.description}}</span>
		    										<button ng-show=' data.children.length != 0 ' ng-click='modalDiv(data.id)' style='position: absolute;top: 0px;right: -40px;' class="btn btn-primary " ><i class="fa fa-plus"></i></button>	
		    									</label>
		    									<!--<button ng-show=' data.children.length != 0 ' ng-click='modalDiv(data.id)' style='margin-bottom: 4px;' class="btn btn-primary " ><i class="fa fa-plus"></i></button>-->
		    									<div style='margin-left: 40px;display: block;height: 30px;' class='repeatDiv_{{data.parentId}}'    ng-repeat="data in data.children" >
			    									<input class='checkbox_{{data.parentId}}' id='checkbox_{{data.id}}' ng-click='judgeState($event,data.id,data.parentId,data.level)' type="checkbox" ng-model='data.checked' />
			    									<label style='position:relative;padding-left:10px;background-color: #00a65a;width: 270px;margin-bottom: 0px;height: 30px;line-height:30px;border-radius: 3px;border: 1px solid #CCCCCC;'>
			    										<span style='height: 25px;display: inline-block;float: left;margin-right: 10px;width: 100px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;'>{{data.name}}</span>
		    											<span style='height: 25px;display:inline-block;width: 120px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;' ng-show=" data.description != null && data.description != '' ">备注:&nbsp;&nbsp;{{data.description}}</span>
			    									</label>
			    								</div>
		    							</div>
		    					</div>
		    			</div>
		    			<div style='width: 100%;height: 10%;border-top: 1px solid #CCCCCC;padding: 10px;'>
		    				<button ng-click='saveAuthority()' style='margin-left: 2%;background-color: #00a65a;' class="btn btn-info" >权限赋予</button>
		    				<button ng-click='openAuthorityMaintain()' style='float: right;background-color: #00c0ef;' class="btn btn-info" >权限维护</button>
		    			</div>
		    	</div>
    </div> 
	</div>
		<button ng-click='TenantWeiHu()' style='position: fixed;height: 30px;right: 1%;top: 8%;border: 1px solid #CCCCCC;border-radius: 3px;'>租户维护</button>
		<div  id="TenantWeiHu" style='display:none;position: fixed;height: 70%;width: 70%;right: 1%;top: 12%;z-index: 1000;border: 1px solid #CCCCCC;background: rgb(240, 240, 240);'>
    		<div style='width: 100%;height: 100%;display: inline-flex;'>
	    		<div style='width: 30%;height: 100%;border-right: 1px solid #CCCCCC;position: relative;'>
	    				<div style='width: 100%;height: 40px;border-bottom: 1px solid #CCCCCC;text-align: center;line-height: 40px;' ng-repeat=' e in enterpriseDatas'>
	    					<span ng-click='getRegion(e.id,e.name)'>{{e.name}}</span>
	    				</div>
	    				<div style='position: absolute;bottom: 0px;height: 40px;width:100%;text-align: center;
	    					line-height: 40px;border-top: 1px solid #CCCCCC;' ng-click='addEnterprise()'>新增企业</div>
	    		</div>
	    		<div style='width: 30%;height: 100%;border-right: 1px solid #CCCCCC;position: relative;background-color: #ddd;'>
	    			<div style='width: 100%;height: 40px;border-bottom: 1px solid #CCCCCC;text-align: center;line-height: 40px;' ng-repeat=' r in regionDatas'>
	    					<span ng-click='getCanteen(r.id,r.name)'>{{r.name}}</span>
	    				</div>
	    				<div style='position: absolute;bottom: 0px;height: 40px;width:100%;text-align: center; 
	    					line-height: 40px;border-top: 1px solid #CCCCCC;' ng-click='addRegion()'>新增区域</div>    
	    		</div> 
	    		<div style='width: 40%;height: 100%;position: relative;background-color: #ccc;'>
	    			<div style='width: 100%;height: 40px;border-bottom: 1px solid #DDDDDD;text-align: center;line-height: 40px;' ng-repeat=' c in canteenDatas'>
	    					<span >{{c.name}}</span>
	    				</div>
	    				<div style='position: absolute;bottom: 0px;height: 40px;width:100%;text-align: center;line-height: 40px;border-top: 1px solid #BBBBBB;' ng-click='addCanteen()'>新增食堂</div>    
	    		</div>
    		</div>
    </div>
	
	<!-- 模态框 新增用户 -->  
<div class="modal fade" id="addTenant" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">新增用户名称</h4>
      </div>
      <from>
      <div class="modal-body form-horizontal">
        <div class="box-body">
           	  <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">用户名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="tenantAddName" ng-blur="judgeShow()" >
                    <span style="color: red;" ng-show="showIt"><i class="fa fa-close"></i>用户名称不能为空</span>
                </div>
            	</div>
            	<div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">登录账号</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="tenantAddUserName" ng-blur="judgeShow()" >
                    <span style="color: red;" ng-show="showItUserName"><i class="fa fa-close"></i>登录账号不能为空</span>
                </div>
            	</div>
            	<div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">登录密码</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="tenantAddPassWord" ng-blur="judgeShow()" >
                    <span style="color: red;" ng-show="showItPassWord"><i class="fa fa-close"></i>登录密码不能为空</span>
                </div>
            	</div>
         </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="submit" class="btn btn-success btn-lg" ng-click="addTenant_true();">确定</button>
      </div>
      </from>
    </div>
  </div>
</div>

<!-- 模态框 修改用户 -->
<div class="modal fade" id="updateTenant" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">修改用户名称</h4>
      </div>
      <from>
      <div class="modal-body form-horizontal">
        <div class="box-body">
           	  <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">用户名称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" ng-model="tenantFullName" ng-blur="judgeShow1()" >
                            <span style="color: red;" ng-show="showUpdate"><i class="fa fa-close"></i>用户名称不能为空</span>
                             <!--<input type="text" class="form-control" placeholder="类别名称" ng-model="categoryName" ng-required="true">-->
                        </div>
                    </div>
         </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="submit" class="btn btn-success btn-lg" ng-click="updateTenant_true();">确定</button>
      </div>
      </from>
    </div>
  </div>
</div>

<!-- 删除用户-->
  	<div class="modal fade" id="delTenant" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">提示</h4>
      </div>
      <div class="modal-body form-horizontal">
        <div class="box-body">
           	确定要删除<span ng-bind="tenantFullName"></span>吗？
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-success btn-lg" ng-click="del_Tenant(tenantId);">确定</button>
      </div>
    </div>
  </div>
</div>

<!-- 权限维护modal -->
<div class="modal fade" id="authorityWeihu" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document" style='margin: 100px auto;width: 80%;height: 70%;'>
    <div class="modal-content" style='height: 90%;'>
      <div class="modal-header" style='border-bottom: none;'>
        <!--button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>-->
        <h4 class="modal-title" style="text-align:center" >权限维护</h4>
      </div>
     <!--表格-->
			<div class="box" style='border:none;width: 96%;height: 76%;margin: 0px 2%;display: inline-block;display: flex;font-size: 16px;'>
				<div style='width: 25%; border: 1px solid #ccc;height: 100%;background-color: #ffffff;'>
						<div style='width: 100%;height: 40px;border-bottom: 1px solid #ccc;line-height: 40px;text-indent: 40px;font-size: 18px;font-weight: bold;'>
							主目录
							<button ng-click='addOneLevelAuthority()' class="btn btn-primary" style='float: right;margin: 2px 5px 0px 0px;'><i class="fa fa-plus"></i></button>
						</div>
						<div style='width: 100%;height: calc(100% - 40px);overflow: auto;'>
								<div id='oneLevel_{{authority.id}}' class='oneLevel' ng-click='getSecondAuthority(authority.id)' style='width: 100%;height: 40px;border-bottom: 1px solid #ccc;line-height: 40px;text-indent: 20px;cursor: pointer;' ng-repeat="authority in authoritys ">
									{{authority.name}}
									<div class='leveldiv'>
											<!--<a href="" class="btn btn-lg edit" style="padding:0px;margin-right: -10px;" ng-click="AuthorityEdit(authority.id,authority.name,authority.path,authority.level)"><i class="fa fa-edit"></i></a>
               	 			<a href="" class="btn btn-lg del" style="padding:0px"  ng-click="AuthorityDel(authority.id,authority.name,authority.path,authority.level)"><i class="fa  fa-close"></i></a>-->
											<i style='margin-left: 40px;' class="fa fa-edit edit" ng-click="AuthorityEdit(authority.id,authority.name,authority.path,authority.level,authority.parentId,authority.description)"></i>
											<!--<i class="fa  fa-close del" ng-click="AuthorityDel(authority.id,authority.name,authority.path,authority.level,authority.parentId)"></i>-->
									</div>
								</div>
						</div>
				</div>
				<div style='width: 35%; border: 1px solid #ccc;height: 100%;background-color: #F8FAFF;'>
						<div style='width: 100%;height: 40px;border-bottom: 1px solid #ccc;line-height: 40px;text-indent: 40px;font-size: 18px;font-weight: bold;'>
							二级目录
							<button ng-click='addTwoLevelAuthority()' class="btn btn-primary" style='float: right;margin: 2px 5px 0px 0px;'><i class="fa fa-plus"></i></button>
						</div>
						<div style='width: 100%;height: calc(100% - 40px);overflow: auto;'>
								<div id='twoLevel_{{authority.id}}'  class='twoLevel'  ng-click='getThirdAuthority(authority.id)' style='width: 100%;height: 40px;border-bottom: 1px solid #ccc;line-height: 40px;text-indent: 20px;cursor: pointer;' ng-repeat="authority in secondAuthoritys ">
									{{authority.name}}
									<div class='leveldiv'>
											<i style='margin-left: 40px;' class="fa fa-edit edit" ng-click="AuthorityEdit(authority.id,authority.name,authority.path,authority.level,authority.parentId,authority.description)"></i>
											<!--<i class="fa  fa-close del" ng-click="AuthorityDel(authority.id,authority.name,authority.path,authority.level,authority.parentId)"></i>-->
									</div>
								</div>
						</div>
				</div>
				<div style='width: 40%; border: 1px solid #ccc;height: 100%;background-color: #F0F8FF'>
						<div style='width: 100%;height: 40px;border-bottom: 1px solid #ccc;line-height: 40px;text-indent: 40px;font-size: 18px;font-weight: bold;'>
							三级目录
							<button ng-click='addThreeLevelAuthority()' class="btn btn-primary" style='float: right;margin: 2px 5px 0px 0px;'><i class="fa fa-plus"></i></button>
						</div>
						<div style='width: 100%;height: calc(100% - 40px);overflow: auto;'>
								<div  style='width: 100%;height: 40px;border-bottom: 1px solid #ccc;line-height: 40px;text-indent: 20px;cursor: pointer;' ng-repeat="authority in thirdAuthoritys ">
									{{authority.name}}
									<div class='leveldiv'>
											<i style='margin-left: 40px;' class="fa fa-edit edit" ng-click="AuthorityEdit(authority.id,authority.name,authority.path,authority.level,authority.parentId,authority.description)"></i>
											<!--<i class="fa  fa-close del" ng-click="AuthorityDel(authority.id,authority.name,authority.path,authority.level,authority.parentId)"></i>-->
									</div>
								</div>
						</div>
				</div>
				
	      </div>
      <div class="modal-footer" style='border-top: none;'>
        <button type="button" class="btn btn-default btn-lg pull-left" ng-click="authority_true()" >取消</button><!--data-dismiss="modal"-->
        <button type="button" class="btn btn-success btn-lg" ng-click="authority_true()">确定</button>
      </div>
    </div>
  </div>
</div>

<!-- 模态框 新建权限 -->
<div class="modal fade" id="addResource" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">权限新建</h4>
      </div>
      <from>
      <div class="modal-body form-horizontal">
        <div class="box-body">
   	  			<div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">权限名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="resourceName"  ><!--ng-blur="judgeShow2()"-->
                    <span style="color: red;" ng-show="resourceName == '' || resourceName == undefined "><i class="fa fa-close"></i>权限名称不能为空</span>
                     <!--<input type="text" class="form-control" placeholder="类别名称" ng-model="categoryName" ng-required="true">-->
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">备注</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="description"  ><!--ng-blur="judgeShow2()"-->
                </div>
            </div>
            <div class="form-group" ng-show=" level == '2' ||   level == '3'">
                <label for="inputEmail3" class="col-sm-2 control-label">权限路径</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="resourcePath"  ><!--ng-blur="judgeShow2()"-->
                    <span style="color: red;" ng-show="resourcePath == '' || resourcePath == undefined "><i class="fa fa-close"></i>权限路径不能为空</span>
                     <!--<input type="text" class="form-control" placeholder="类别名称" ng-model="categoryName" ng-required="true">-->
                </div>
            </div>
         </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="submit" class="btn btn-success btn-lg" ng-click="addResource_true();">确定</button>
      </div>
      </from>
    </div>
  </div>
</div>
<!-- 模态框 修改权限 -->
<div class="modal fade" id="updateResource" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">权限修改</h4>
      </div>
      <from>
      <div class="modal-body form-horizontal">
        <div class="box-body">
   	  			<div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">权限名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="updateresourceName"  ><!--ng-blur="judgeShow2()"-->
                    <span style="color: red;" ng-show="updateresourceName == '' || updateresourceName == undefined "><i class="fa fa-close"></i>权限名称不能为空</span>
                     <!--<input type="text" class="form-control" placeholder="类别名称" ng-model="categoryName" ng-required="true">-->
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">备注</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="updateDescription"  ><!--ng-blur="judgeShow2()"-->
                </div>
            </div>
            <div class="form-group" ng-show="updateLevel == '2' || updateLevel == '3' ">
                <label for="inputEmail3" class="col-sm-2 control-label">权限路径</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="updateresourcePath"  ><!--ng-blur="judgeShow2()"-->
                    <span style="color: red;" ng-show="updateresourcePath == '' || updateresourcePath == undefined "><i class="fa fa-close"></i>权限路径不能为空</span>
                     <!--<input type="text" class="form-control" placeholder="类别名称" ng-model="categoryName" ng-required="true">-->
                </div>
            </div>
         </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="submit" class="btn btn-success btn-lg" ng-click="updateResource_true();">确定</button>
      </div>
      </from>
    </div>
  </div>
</div>
<!-- 删除权限 -->
  	<div class="modal fade" id="delAuthority" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">提示</h4>
      </div>
      <div class="modal-body form-horizontal">
        <div class="box-body">
           	确定要删除&nbsp;&nbsp;<span ng-bind="authName"></span>&nbsp;&nbsp;吗？
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-success btn-lg" ng-click="del_authority(authId);">确定</button>
      </div>
    </div>
  </div>
</div>

<!-- 模态框 新增企业 --> 
<div class="modal fade" id="addEnterprise" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">新增企业</h4>
      </div>
      <from>
      <div class="modal-body form-horizontal">
        <div class="box-body">
           	  <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">企业名称</label>
                 <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="enterpriseName"  >
                </div>
            	</div>
            	<div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">企业编码</label>
                 <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="enterpriseCode"  >
                </div>
            	</div>
         </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="submit" class="btn btn-success btn-lg" ng-click="addEnterprise_true();">确定</button>
      </div>
      </from>
    </div>
  </div>
</div>

<!-- 模态框 新增区域 --> 
<div class="modal fade" id="addRegion" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">新增区域</h4>
      </div>
      <from>
      <div class="modal-body form-horizontal">
        <div class="box-body">
           	  <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">区域名称</label>
                 <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="regionName"  >
                </div>
            	</div>
            	<div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">区域编码</label>
                 <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="regionCode"  >
                </div>
            	</div>
         </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="submit" class="btn btn-success btn-lg" ng-click="addRegion_true();">确定</button>
      </div>
      </from>
    </div>
  </div>
</div>

<!-- 模态框 新增食堂 --> 
<div class="modal fade" id="addCanteen" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">新增食堂</h4>
      </div>
      <from>
      <div class="modal-body form-horizontal">
        <div class="box-body">
           	  <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">食堂名称</label>
                 <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="canteenName"  >
                </div>
            	</div>
            	<!--<div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">区域编码</label>
                 <div class="col-sm-10">
                    <input type="text" class="form-control" ng-model="regionCode"  >
                </div>
            	</div>-->
         </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="submit" class="btn btn-success btn-lg" ng-click="addCanteen_true();">确定</button>
      </div>
      </from>
    </div>
  </div>
</div>

	
<!-- jQuery 2.2.3 -->
<script src="../css/AdminLTE/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="../js/validate.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="../css/AdminLTE/bootstrap/js/bootstrap.min.js"></script>
<!-- Angular -->
<script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script>
<script src="http://apps.bdimg.com/libs/angular-route/1.3.13/angular-route.js"></script>
<script src="../js/jquery-ui.js"></script>
<script src="../js/validate.js"></script>
<script src="../js/rootTenantAuthorityCtrl.js"></script>
</body>
</html>
